package org.myspringframework.beans.factory.support.strategy;

import org.myspringframework.beans.BeansException;
import org.myspringframework.beans.factory.config.beandefinition.BeanDefinition;

import java.lang.reflect.Constructor;

//策略模式
//决定进行object实例化使用哪种方法
public interface InstantiationStrategy {

    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor, Object[] args) throws BeansException;

}